import request from '@/utils/request'

export default {

    /**
     * 绑定小节的试卷
     * @returns 
     */
    bindChapterTestPaper(chapterId, testId) {
        return request({
            url: `/eduM2/eduTestChapter/addChapterTest/${chapterId}/${testId}`,
            method: 'get'
        })
    },

    /**
    * 删除小节的试卷
     * @returns 
    */
    removeChapterTestPaper(id) {
        return request({
            url: `/eduM2/eduTestChapter/deleteTestChapterByChapterId/${id}`,
            method: 'get'
        })
    },

    /**
    * 查询小节的试卷
     * @returns 
    */
    getChapterTestPaper(chapterId) {
        return request({
            url: `/eduM2/eduTestChapter/getTestByChapterId/${chapterId}`,
            method: 'get'
        })
    }

}